(C) 1996 AROS - The Amiga Replacement OS


NAME
void InitStruct()
SYNOPSIS
APTR initTable
APTR memory
ULONG size

LOCATION
In SysBase at offset 13
FUNCTION
Initialize some library base or other structure depending on the information in the init table. The init table consists of instructions starting with an action byte followed by more information. The instruction byte looks like:

iisscccc where ii is the instruction code: 0 - copy following c+1 elements 1 - repeat following element c+1 times 2 - take next byte as offset, then copy 3 - take the next 3 bytes (in the machine's particular byte ordering) as offset, then copy ss is the element size 0 - LONGs 1 - WORDs 2 - BYTEs cccc is the element count-1

Instruction bytes must follow the same alignement restrictions as LONGs, the following elements are aligned to their particular restrictions.

A 0 instruction ends the init table.

INPUTS
initTable
Pointer to init table.
memory
Pointer to uninitialized structure.
size
Size of memory area to 0 out before decoding or 0 for no filling.
RESULT
NOTES
EXAMPLE
BUGS
SEE ALSO
INTERNALS
HISTORY